<?php

namespace app\index\model;

use think\Model;

class Casus extends BaseModel
{

    public static function getCasus($typeId, $size = 20)
    {
        $where = [
            'onlineswitch' => ['>', 0]
        ];
        if ($typeId) {
            $where['type_id'] = $typeId;
        }
        return self::where($where)->order('weigh desc')->paginate($size);
    }
}
